HTML defines six levels of headings. A heading element implies all the font changes, paragraph breaks before and after, and any white space necessary to render the heading. The heading elements are H1, H2, H3, H4, H5, and H6 with H1 being the highest (or most important) level and H6 the least.
ID
An SGML identifier used as the target for hypertext links or for naming particular elements in
associated style sheets. Identifiers are NAME tokens and must be unique within the scope of the current
document.
LANG
This is one of the ISO standard language abbreviations, e.g. "en.uk" for the variety of
English spoken in the United Kingdom. It can be used by parsers to select language specific choices for
quotation marks, ligatures and hyphenation rules. The language attribute is composed from the two letter
language code from ISO 639, optionally followed by a period and a two letter country code from ISO
3166.
CLASS
This a space separated list of SGML NAME tokens and is used to subclass tag names. For instance,
<H2 CLASS=Section> defines a level 2 header that acts as a section header. By convention, class
names are interpreted hierarchically, with the most general class on the left and the most specific on the
right, where classes are separated by a period. The CLASS attribute is most commonly used to attach a
different style to some element, but it is recommended that where practical class names should be picked on
the basis of the element's semantics, because this permitsother uses, such as restricting search through
documents by matching on element class names. The conventions for choosing class names are outside the
scope of this document.
ALIGN
Headings are usually rendered flush left. The ALIGN attribute can be used to explicitly specify the
horizontal alignment:
CLEAR
This attribute is common to all block-like elements. When text flows around a figure or table in the
margin, you sometimes want to start an element like a header, paragraph or list below the figure rather than
alongside it. The CLEAR attribute allows you to move down unconditionally:
The style sheet (or browser defaults) may provide default minimum widths for each class of block- like elements.
SEQNUM
A sequence number is associated with each level of header from the top level (H1) to the bottom
level (H6). This attribute is used to set the sequence number associated with the header level of the current
element to a given number, e.g. SEQNUM=10. Normally, the sequence number is initialized to 1 at the
beginning of the document and incremented after each header element. It is reset to 1 by any header element
of a higher level, e.g. an H1 header resets the sequence numbers for H2 to H6. The style of header
numbering is controlled by the style sheet.
SKIP
Increments the sequence number before rendering the element. It is used when headers have been
left out of the sequence. For instance, SKIP=3 advances the sequence number past 3 omitted items.
DINGBAT
Specifies an iconic image to appear preceding the header. The icon is specified as an entity name. A
list of standard icon entity names for HTML 3.0 is given in an appendix of this specification.
SRC
Specifies an image to appear preceding the header. The image is specified as a URI. This attribute
may appear together with the MD attribute.
MD
Specifies a message digest or cryptographic checksum for the associated graphic specified by the
SRC attribute. It is used when you want to be sure that a linked object is indeed the same one that the author
intended, and hasn't been modified in any way. For instance,
MD="md5:jV2OfH+nnXHU8bnkPAad/mSQlTDZ" specifies an MD5 checksum encoded as a
base64 character string. The MD attribute is generally allowed for all elements which support URI based
links.
NOWRAP
The NOWRAP attribute is used when you don't want the browser to automatically wrap lines. You
can then explicitly specify line breaks in headings using the BR element.
<H*> is legal within:
<A>, <BANNER>, <BODYTEXT>, <DIV>, <FIGTEXT>,
<FN>, <FORM>, <NOTE>, <TD>, <TH>
The following markup can be used within <H*>
<A>, <ABBREV>, <ACRONYM>, <AU>, <B>, <BIG>,
<BR>, <CITE>, <CODE>, <DEL>, <DFN>, <EM>, <I>,
<IMG>, <INS>, <KBD>, <LANG>, <MATH>, <PERSON>, <Q>,
<S>, <SAMP>, <SMALL>, <STRONG>, <SUB>, <SUP>,
<TAB>, <TT>, <U>, <VAR>
<H2>A Good Beginning</H2>